package com.maycur.ctrip.domain;

import java.io.Serializable;

/**
 * Created by sqlxx on 5/28/16.
 * Copyright to Maycur Tech.
 */
@SuppressWarnings("serial")
public class SimplifiedSubsidiary implements Serializable {
    private String code;
    private String name;
    private String baseCcy;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBaseCcy() {
        return baseCcy;
    }

    public void setBaseCcy(String baseCcy) {
        this.baseCcy = baseCcy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        SimplifiedSubsidiary that = (SimplifiedSubsidiary) o;

        return code.equals(that.code);

    }

    @Override
    public int hashCode() {
        return code.hashCode();
    }
}
